export const getStatusString = (status: number) => {
    if (status === 0) {
        return "超级管理员"
    } else if (status === 1) {
        return "游客"
    } else if (status === 2) {
        return "患者"
    } else if (status === 3) {
        return "本院职工"
    } else if (status === 4) {
        return "外院专家"
    } else if (status === 5) {
        return "管理员"
    } else if (status > 100 && status < 1000) {
        return "已拒绝"
    } else {
        return "待审核";
    }
}

export const getStatusColor = (status: number) => {
    if (status === 0) {
        return "#FFFFFF"
    } else if (status === 1) {
        return "#CCFFCC"
    } else if (status === 2) {
        return "#CCFFFF"
    } else if (status === 3) {
        return "#FFCCCC"
    } else if (status === 4) {
        return "#FFCC99"
    } else if (status === 5) {
        return "#CCCCFF"
    } else if (status > 100 && status < 1000) {
        return "#FF6666"
    } else {
        return "#CCCCCC"
    }
}

export const getColor = (value: string) => {
    // let colors = ['#CCFF99', '#99CCFF', '#99CCCC', '#CCFFCC', '#66CCCC', '#CCCCFF', '#FFFFCC']
    let colors = [
        '#0808d3',
        '#ff9901',
        '#0576ee',
        '#ad00ff',
        '#04f57a',
        '#ff0000',
        '#f805e4']
    let tmp = value.substring(12)
    // @ts-ignore
    return colors[tmp * 2 % 7]
}

export const getAppointmentType = (value: any) => {
    if (value === 1) {
        return "维护"
    } else if (value === 2) {
        return "置管"
    } else if (value === 3) {
        return "拔管"
    }
}
export const getAppointmentTagType = (value: any) => {
    if (value === 1) {
        return "info"
    } else if (value === 2) {
        return "warning"
    } else if (value === 3) {
        return "error"
    }
}
export const getAppointmentStatus = (value: any) => {
    if (value === 1) {
        return "预约中"
    } else if (value === 2) {
        return "进行中"
    } else if (value === 3) {
        return "待回访"
    } else if (value === 4) {
        return "已完成"
    } else if (value === 5) {
        return "已取消"
    }
}
export const getAppointmentStatusColor = (value: any) => {
    if (value === 1) {
        return "#00ffd1"
    } else if (value === 2) {
        return "#0021ff"
    } else if (value === 3) {
        return "#ffc600"
    } else if (value === 4) {
        return "#0d6200"
    } else if (value === 5) {
        return "#ff003d"
    }
}

export const getArticleStatusColor = (value: any) => {
    if (value === 0) {
        return "#8a8c8c"
    } else if (value === 1) {
        return "#c47700"
    } else if (value === 2) {
        return "#0d6200"

    } else if (value === 3) {
        return "#ff0015"
    }
}
export const getArticleStatus = (value: any) => {
    if (value === 0) {
        return "编辑中"
    } else if (value === 1) {
        return "待审核"
    } else if (value === 2) {
        return "通过"
    } else if (value === 3) {
        return "不通过"
    }
}

export const getCommentStatus = (value: any) => {
    if (value === 0) {
        return "正常"
    } else if (value === 1) {
        return "已删除"
    }
}
export const getCommentType = (value: any) => {
    if (value === 1) {
        return "就诊"
    } else if (value === 2) {
        return "文章"
    }
}
export const getCommentStatusColor = (value: any) => {
    if (value === 0) {
        return "#0d6200"

    } else if (value === 1) {
        return "#ff0015"
    }
}
export const getLikeType = (value: any) => {
    if (value === 1) {
        return "医护"
    } else if (value === 2) {
        return "文章"
    } else if (value === 3) {
        return "评论"
    }
}